package example;

public class ClassWithThreadingProblem {
    int nextValue;

    int nextValue() {
        return ++nextValue;
    }

    int currentValue() {
        return nextValue;
    }
}
